package cn.imvc.app.domains;

/**
 * 各种常量
 * @author liujunli
 *
 */
public class Constants {
	
	/**
	 * member缓存名
	 */
	public static final String CACHENAME_MEMBER = "MEMBER";
	
	/**
	 * 短信次数key前缀
	 */
	public static final String MESSAGE_TIMES_KEY_PREFIX = "TIMES_";
	
	/**
	 * 短信次数区间(秒)，如24小时之内不能超过10条
	 */
	public static final int MESSAGE_TIMES_ZONE = 24 * 60 * 60;
	
	/**
	 * 短信验证码有效期(秒)
	 */
	public static final int MESSAGE_CODE_INDATE = 10 * 60;
	
	/**
	 * 发送两次短信验证码间隔(秒)
	 */
	public static final int MESSAGE_CODE_INTERVAL = 60;
	
	/**
	 * 短信验证码前缀
	 */
	public static final String MESSAGE_CODE_KEY_PREFIX = "MCODE_";
	
	/**
	 * 邮箱验证码前缀
	 */
	public static final String EMAIL_CODE_KEY_PREFIX = "ECODE_";
	
	/**
	 * token令牌有效期(秒)
	 */
	public static final int TOKEN_INDATE = 60 * 60;
	
	/**
	 * 域名
	 */
	public static final String DOMAIN = "http://www.xinghaoshangcheng.com";
	
	/**
	 * 域名前缀
	 */
	public static final String DOMAIN_PREFIX = "http://";
	
	/**
	 * 域名后缀
	 */
	public static final String DOMAIN_SUFFIX = ".xinghaoshangcheng.com";
	
	/**
	 * 我的团队列表每页记录数
	 */
	public static final int TEAM_PAGE_SIZE = 20;
	
	/**
	 * 我的资金列表每页记录数
	 */
	public static final int MONEY_PAGE_SIZE = 15;
	
	/**
	 * 新闻列表每页记录数
	 */
	public static final int ARTICLE_PAGE_SIZE = 10;
	/**
	 * 不需要收货地址的快递code,多个以逗号分隔
	 */
	public static final String NONEED_ADDRESS_EXPRESS_CODE = "ZITI";
}
